package com.xx.ch08.demo.demo02.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author 许欣
 * 时间：2022/4/20 10:12
 * 描述：
 */
@Component
@Scope("prototype")
public class User {
    @Value("小明")
    public String name;
}
